/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb.dao.estagio;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author Guilherme Silva
 * @author Pedro Siqueira
 */
@Entity
@Table(name = "tb_alerta")
public class Alerta implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date dataAlerta;
    private String descricao;
    public Long getId() {
        return id;
    }

    public Alerta() {
    }

    public Alerta(Date dataAlerta, String descricao) {
        this.dataAlerta = dataAlerta;
        this.descricao = descricao;
    }

    public Date getDataAlerta() {
        return dataAlerta;
    }

    public void setDataAlerta(Date dataAlerta) {
        this.dataAlerta = dataAlerta;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }
}
